package com.hl.manage.service.impl;

import com.hl.manage.entity.Department;
import com.hl.manage.mapper.DepartmentMapper;
import com.hl.manage.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Helei
 * @since 2021-03-15
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

	@Resource
	
	private DepartmentMapper de;
	
	@Override
	public List<Department> findByParentId(Integer parentId) {
		// TODO Auto-generated method stub
		return de.findByParentId(parentId);
	}

	@Override
	public List<Department> findByPIT(Integer type, Integer parentId, Integer id) {
		// TODO Auto-generated method stub
		return de.findByPIT(type, parentId, id);
	}

}
